package com.atguigu.auth.service;

import com.atguigu.model.system.SysRole;
import com.atguigu.vo.system.AssignRoleVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * className: SysRoleService
 * description:
 * date: 2023/4/11 0011-22:25
 * <p>
 * project: guigu-oa-parent
 * package: com.atguigu.auth.service
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public interface SysRoleService extends IService<SysRole> {

    /**
     * 查询所有角色和当前用户所属角色
     *
     * @param userId {@link Long}
     * @return {@link Map<String, Object>}
     */
    Map<String, Object> findRoleDataByUserId(Long userId);

    /**
     * 为用户分配角色
     *
     * @param assignRoleVo {@link AssignRoleVo}
     */
    void doAssign(AssignRoleVo assignRoleVo);
}
